//
//  LKRequestManager.m
//  B2B2C
//
//  Created by pie on 2019/12/10.
//  Copyright © 2019 pie. All rights reserved.
//

#import "LKRequestManager.h"

@implementation LKRequestManager


- (instancetype)initWithBaseURL:(NSURL *)url
           sessionConfiguration:(NSURLSessionConfiguration *)configuration
{
    self = [super initWithBaseURL:url sessionConfiguration:configuration];
    if (self) {
        
        self.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"text/plain", @"text/html",@"application/json",@"text/json", @"text/javascript",@"application/x-www-form-urlencoded",nil];
        self.requestSerializer = [AFHTTPRequestSerializer serializer];
        

        [self setCommonHTTPHeaderField];
    }
    return self;
}

- (void)setCommonHTTPHeaderField
{
    [super setCommonHTTPHeaderField];
}
@end
